package frame.service.standard;

public class Constants {
    public static final String SUCCESS_STATUS_CODE = "000000";
    public static final String LOG_REQUEST_UUID = "request_uuid";
    public static final String LOG_SESSION_UUID = "session_id";

    /**
     * 请求访问安全模式
     * secure 对请求响应数据解密加密
     * open 明文传输
     * */
    public static final String SAFE_MODE_SECURE = "secure";
    public static final String SAFE_MODE_OPEN = "open";

    //request_attribute
    public static final String REQUEST_ATTR =  ("_REQUEST_")+("REQUEST_ATTRIBUTE");
    //生成请求UUID
    public static final String REQUEST_UUID = ("_REQUEST_")+("REQUEST_UUID");
    //获取请求源数据字节数组
    public static final String REQUEST_BODY_BYTE = ("_REQUEST_")+("REQUEST_BYTE");
    //源请求http头
    public static final String REQUEST_HEADERS = ("_REQUEST_")+("REQUEST_HEADERS");
    //源请求QueryString
    public static final String REQUEST_QUERY_STRING = ("_REQUEST_")+("REQUEST_QUERY_STRING");
    //源请求session
    public static final String REQUEST_SESSION = ("_REQUEST_")+("REQUEST_SESSION");
    //源请求方法
    public static final String REQUEST_HTTP_METHOD = ("_REQUEST_")+("REQUEST_HTTP_METHOD");
    /**
     * 源请求处理结果数据
     * 1、内容为根据httpMessageConverter转换完成的数据结果
     * */
    public static final String REQUEST_MSG_CONTENT = ("_REQUEST_")+("CONTENT");
    //源请求安全模式
    public static final String REQUEST_SAFE_MODE = ("_REQUEST_")+("SAFE_MODE");
    //源请求业务模块
    public static final String REQUEST_MODULE = ("_REQUEST_")+("MODULE");
    //源请求模块服务
    public static final String REQUEST_SERVICE = ("_REQUEST_")+("SERVICE");
    //源请求服务操作
    public static final String REQUEST_ACTION = ("_REQUEST_")+("ACTION");
    //源请求操作版本
    public static final String REQUEST_VERSION = ("_REQUEST_")+("VERSION");


    //service操作响应数据设置
    public static final String RESPONSE_MSG_CONTENT = ("_RESPONSE_")+("CONTENT");

    public static final String RESPONSE_DEFAULT_BODY_KEY = "data";


    public static final String RET_STATUS_CODE = "status_code";
    public static final String RET_STATUS_MESSAGE = "resp_message";
    public static final String RET_RESPONSE_HEADER = "header";
    public static final String RET_RESPONSE_BODY = "body";

    //默认请求处理参数配置
    public static final String DEFAULT_SERVICE_HANDLE = ("_SERVICE_HANDLE_")+("DEFAULT");

    public static final String SECRET_REQUEST_SESSION_KEY = "s_session_key";
    public static final String SECRET_REQUEST_TIMESTAMP = "s_time_stamp";
    public static final String SECRET_REQUEST_DATA = "s_data";
    public static final String SECRET_REQUEST_MAC = "s_mac";
    public static final String SECRET_RESPONSE = "s_resp";

    //场景id
    public static final String SCENE_ID = "_scene-id";
    //服务id，场景id+前端唯一id
    public static final String REQUEST_REPLAY_ID = "_re_id";
    //请求链id
    public static final String REQUEST_CHAIN_ID = "_rc_id";
}
